#!-*-coding:utf-8-*-

from enum import Enum


class AudioStatus(Enum):
    OPENED = "0"
    PLAYING = "1"
    PAUSED = "2"
    STOPPED = "3"
    CLOSED = "4"


class CallStatus(Enum):
    NULL_CALL = "0"
    INIT = "1"
    CALLING = "2"
    CALL = "3"
    INCOMING_CALL = "4"
    HOLD = "5"
    WAITING = "6"


class LockStatus(Enum):
    LOCKED = "0"
    UNLOCKED_ONCE = "1"
    UNLOCKED = "2"


class VideoStatus(Enum):
    IDEL = "0"
    READY = "1"
    ACTIVING = "2"
    INIT = "3"
    INIT_PAUSE_EX = "4"
    INIT_AUTH = "5"
    PLAY_PENDING = "6"
    PLAY_AUTH = "7"
    PLAYING = "8"
    BUFFERING = "9"
    SEEKING = "10"
    PAUSING = "11"
    PAUSED = "12"
    PAUSED_EX = "13"
    PAUSED_SEEKING = "14"
    RESUMING = "15"
    STOPING = "16"
    STOPED = "17"
    CLOSING = "18"


class Common(Enum):
    GET_BATEERY = "COMMON+BATTERINFO"
    SET_LCD = "COMMON+SETLCDBKLI"
    SET_LOCK_TIME = "COMMON+SETKEYLOCK"
    GET_LCD = "COMMON+LCDBKLIGHT"
    GET_LOCK_STATE = "COMMON+KYLCOKST"
    SCREEN_SHOT = "COMMON+SNAPSHOT"
    IF_IDEL = "COMMON+GOIDLE"
    IF_MAIN_MENU = "COMMON+GOMAINMU"
    IF_LOCK_SCREEN = "COMMON+KEYLOCK"
    IF_UNLOCK_SCREEN = "COMMON+UNKEYLOCK"


class Call(Enum):
    IF_CALL = "CALL+OPEN"
    IS_CALL_OPEN = "CALL+ISOPEN"
    CALL_OUT = "CALL+CALLOUT"
    CALL_IN = "CALL+CALLIN"
    CALL_END = "CALL+CALLEND"
    GET_CALL_STATUS = "CALL+STATUS"
    CLOSE_CALL = "CALL+CLOSE"


class MSG(Enum):
    IF_MSG = "MSG+OPEN"
    IS_MSG_OPEN = "MSG+ISOPEN"
    MSG_SEND = "MSG+SEND"
    CLOSE_MSG = "MSG+CLOSE"


class Camera(Enum):
    IF_CAMERA = "CAMERA+OPEN"
    IS_CAMERA_OPEN = "CAMERA+ISOPEN"
    CLOSE_CAMERA = "CAMERA+CLOSE"
    TAKE_PICTURE = "CAMERA+CAPTURE"


class Audio(Enum):
    IF_AUDIO = "AUDPLAY+OPEN"
    IS_AUDIO_OPEN = "AUDPLAY+ISOPEN"
    CLOSE_AUDIO = "AUDPLAY+CLOSE"
    PLAY_CURRENT_AUDIO = "AUDPLAY+CURRENT"
    PLAY_APPOINTED_AUDIO = "AUDPLAY+ONEFILE"
    GET_AUDIO_STATUS = "AUDPLAY+STATUS"


class Video(Enum):
    IF_VIDEO = "VIDPLAY+OPEN"
    IS_VIDEO_OPEN = "VIDPLAY+ISOPEN"
    CLOSE_VIDEO = "VIDPLAY+CLOSE"
    PLAY_CURRENT_VIDEO = "VIDPLAY+CURRENT"
    PLAY_APPOINTED_VIDEO = "VIDPLAY+ONEFILE"
    VIDEO_STATUS = "VIDPLAY+STATUS"


class SIM(Enum):
    SIM1 = "SIM1"
    SIM2 = "SIM2"

